package day4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class EmpTest {
    public static void main(String[] args) {

        //
        Scanner in = new Scanner(System.in);
        int choice = -1;
        Company com = new Company();
        com.name = "中耀国际";
        com.addr = "打中路10号";
        com.scope = "租赁";
        com.tele = "343949494";
        boolean runing=true;
        while (runing) {
            System.out.println("1:查看公司信息，2：招新人,9:退出");

            choice = in.nextInt();
            switch (choice) {
                case 1:
                    com.show();
                    break;
                case 2:
                    System.out.print("请输入新员工的名字:");
                    String name = in.next();
                    com.hire(name);
                    break;
                case 9:
                    runing=false;
                    break;
                default:
                    System.out.println("输入错误");
                    break;
            }
        }
    }
}
